package com.itheima.a01exceptiondemo;

public class ExceptionDemo2 {
    public static void main(String[] args) {
        //JVM默认处理异常

        int[] arr={1,2,3,4,5};

        try {
            System.out.println(arr[7]);
        } catch (ArrayIndexOutOfBoundsException e) {
            throw new RuntimeException(e);
        }

        System.out.println("看看我执行了吗");
    }
}
